]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
9 years agoshellDBus: Avoid access to undefined properties
Florian Müllner [Sat, 17 Jun 2017 16:31:34 +0000 (18:31 +0200)]
shellDBus: Avoid access to undefined properties

Don't rely on an implicit undefined value of unset parameters to
shut up some warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agodateMenu: Set _delegate on non-menu-item menu child
Florian Müllner [Sat, 17 Jun 2017 16:14:20 +0000 (18:14 +0200)]
dateMenu: Set _delegate on non-menu-item menu child

PopupMenu needs special-treatment of certain types of menu items,
which it determines via children's _delegate property. However as
the calendar drop-down is very unmenu-ish, we use regular actors
rather than PopupMenuItems and the missing _delegate property
triggers a warning. Just add it as the bare minimum to make
PopupMenu happy.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agonotificationDaemon: Avoid access to undefined property
Florian Müllner [Tue, 13 Jun 2017 04:49:07 +0000 (06:49 +0200)]
notificationDaemon: Avoid access to undefined property

Avoid a warning when assigning from an undefined property by making
sure to pass a proper null value instead.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agocalendar: Fix access to undefined property
Florian Müllner [Tue, 13 Jun 2017 04:41:08 +0000 (06:41 +0200)]
calendar: Fix access to undefined property

Don't call a parent method before chaining-up _init() to
avoid a warning about access to an undefined property.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agowindowManager: Fix a warning
Florian Müllner [Tue, 13 Jun 2017 03:51:31 +0000 (05:51 +0200)]
windowManager: Fix a warning

The destroy effect currently relies on a monkey-patched property
added from the map effect. However on X11 it is possible that we
did no map animation for a window that is destroyed when the shell
was restarted or had taken over from another WM. Just use the real
MetaWindow property to avoid a warning in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agolayout: Skip strut computation in the no-monitor case
Florian Müllner [Thu, 13 Jul 2017 13:53:04 +0000 (15:53 +0200)]
layout: Skip strut computation in the no-monitor case

It's possible for updateRegions() to be called before monitors have
been properly initialized. Instead of throwing an error in that case,
just skip the strut computation (that doesn't make sense anyway without
a monitor).

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agolayout: Range-check index before array lookup
Florian Müllner [Tue, 13 Jun 2017 03:39:06 +0000 (05:39 +0200)]
layout: Range-check index before array lookup

findMonitorForActor() may be called before the layoutManager gets
to initialize monitors, so make sure the monitor index is in range
to avoid a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoibusManager: Fix a warning
Florian Müllner [Tue, 13 Jun 2017 03:03:17 +0000 (05:03 +0200)]
ibusManager: Fix a warning

Don't try to access a non-existent engine - it probably makes sense to
use Map() instead of a plain object to track engines in the future, but
for now just add an additional check to shut up a warning.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agohistory: Fix bogus return value
Florian Müllner [Tue, 13 Jun 2017 02:56:34 +0000 (04:56 +0200)]
history: Fix bogus return value

We only use lastItem() to reset the history index to the end, so
nobody noticed the utter nonsense in the return value until gjs
started to warn about it. As we don't actually use the value
anywhere, we could just remove it, but the function name implies
that an item is returned, so fix it to behave as advertised.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agopanel: Fix a JS warning
Florian Müllner [Tue, 13 Jun 2017 02:46:37 +0000 (04:46 +0200)]
panel: Fix a JS warning

We need to track the open-status of indicator menus, but don't want
to hook up signals more than once, so we check for the handler ID
we store on the object. As the property is only defined once we did
set up the signal connection, this check now logs a warning. We
can avoid it by checking for the existence of the property rather
than a particular value.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoremoteMenu: Add actionGroup accessor
Florian Müllner [Tue, 13 Jun 2017 02:17:39 +0000 (04:17 +0200)]
remoteMenu: Add actionGroup accessor

To avoid recreating the app menu unnecessarily, the panel checks
whether the menu's current actionGroup already matches the target
one. However as the menu's actionGroup property is currently private,
the test always fails, whoops.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agodash: Fix some JS warnings
Florian Müllner [Tue, 13 Jun 2017 01:41:42 +0000 (03:41 +0200)]
dash: Fix some JS warnings

We currently use "array[index]" to test whether an array has an
element at index before using it. However nowadays gjs warns about
accessing non-existent array elements, so the test itself already
produces a warning. Avoid this by checking the array length before
using an index to access an element.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoDon't use 'undefined' as boolean
Florian Müllner [Tue, 13 Jun 2017 04:49:07 +0000 (06:49 +0200)]
Don't use 'undefined' as boolean

Make sure we pass a proper false value instead of undefined to
avoid warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agoInitialize properties in _init()
Florian Müllner [Tue, 13 Jun 2017 02:24:12 +0000 (04:24 +0200)]
Initialize properties in _init()

While we've always considered it good style to initialize JS properties,
some code that relies on uninitialized properties having an implicit
value of 'undefined' has slipped in over time. The updated SpiderMonkey
version used by gjs now warns when accessing those properties, so we
should make sure that they are properly initialized to avoid log spam,
even though all warnings addressed here occur in conditionals that
produce the correct result with 'undefined'.

https://bugzilla.gnome.org/show_bug.cgi?id=781471

9 years agologinDialog: Only highlight a single item at any time
Florian Müllner [Fri, 9 Jun 2017 15:34:43 +0000 (17:34 +0200)]
loginDialog: Only highlight a single item at any time

The user list uses the same indication for hover and focus, so it
is possible for two items to be highlighted at the same time. Using
different styling would improve the situation, but only to some
extent - the user would still need to figure out which highlight
corresponds to which activation method. So instead, copy the
approach we use in popup menus and use a single property for
highlights that is updated by both focus- and hover changes.

https://bugzilla.gnome.org/show_bug.cgi?id=772284

9 years agovolume: Show OSD popup when changing volume via scroll
Florian Müllner [Fri, 9 Jun 2017 14:06:39 +0000 (16:06 +0200)]
volume: Show OSD popup when changing volume via scroll

It is possible to use the scroll wheel to adjust the volume without
opening the system menu, but there is no feedback other than the
icon itself in that case. To provide a less coarse indication for
the volume level, display the OSD window when adjusting the volume
while the slider isn't visible.

https://bugzilla.gnome.org/show_bug.cgi?id=781028

9 years agosystem: Emulate click action button release
Florian Müllner [Fri, 16 Jun 2017 15:08:07 +0000 (17:08 +0200)]
system: Emulate click action button release

Since commit 2c070d38, we add a ClickAction to the visible AltSwitcher
button to track long-presses. As a result, we now have two components
that will grab and ungrab the pointer for the button, so to make sure
we don't end up with a stuck grab, we need to release the second's
component grab when the first activates.

Currently we only drop the StButton grab on long-press, we also need
to cancel any initiated long-press on click.

https://bugzilla.gnome.org/show_bug.cgi?id=781738

9 years agoauthPrompt: allow empty response to PAM messages
Ray Strode [Wed, 14 Jun 2017 14:05:36 +0000 (10:05 -0400)]
authPrompt: allow empty response to PAM messages

Some PAM modules say "Press enter to continue" or
whatever.  We need to support them.

This commit allows empty responses to PAM questions,
but still requires a non-empty response for username.

https://bugzilla.gnome.org/show_bug.cgi?id=784360

9 years agogdmUtil: Fix auth prompt drawing over user list
Ray Strode [Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)]
gdmUtil: Fix auth prompt drawing over user list

If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by skipping a retry if
the operation is cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=784361

9 years agoFix translation headers
Jeremy Bicha [Mon, 10 Jul 2017 12:01:08 +0000 (08:01 -0400)]
Fix translation headers

9 years agologinDialog: Disable user list when no user
Xiaoguang Wang [Fri, 7 Jul 2017 06:47:23 +0000 (14:47 +0800)]
loginDialog: Disable user list when no user

https://bugzilla.gnome.org/show_bug.cgi?id=731320

9 years agonotificationDaemon: Fix fallback icon names
Florian Müllner [Thu, 29 Jun 2017 23:11:53 +0000 (01:11 +0200)]
notificationDaemon: Fix fallback icon names

The gtk-dialog-* names are old and non-standard, and haven't been
provided by the default icon theme for quite a while ...

https://bugzilla.gnome.org/show_bug.cgi?id=784245

9 years agost: Don't try to create shadow for empty texture
Florian Müllner [Thu, 29 Jun 2017 22:06:53 +0000 (00:06 +0200)]
st: Don't try to create shadow for empty texture

Even though the API documentation doesn't say so, the underlying
Cogl texture of a ClutterTexture may be unset, so check for that
case to avoid a runtime warning.

https://bugzilla.gnome.org/show_bug.cgi?id=784353

9 years agopanel: Consider visibility changes for solid style
Florian Müllner [Tue, 20 Jun 2017 08:16:05 +0000 (10:16 +0200)]
panel: Consider visibility changes for solid style

We currently assume that window state changes are accompanied by an
allocation change (triggered for example by the minimize animation).
However this misses the case where a window actor is simply hidden
without any transition, as is the case with the 'show-desktop' action
for instance, so start tracking plain visibility changes as well.

https://bugzilla.gnome.org/show_bug.cgi?id=783975

9 years agoutil: Force text direction of time strings
Florian Müllner [Fri, 23 Jun 2017 15:37:13 +0000 (17:37 +0200)]
util: Force text direction of time strings

While the string returned by formatTime() should follow the locale's
text direction as a whole, the actual time part is always expected
to put hours on the left and minutes to the right. It is possible to
enforce that by inserting a left-to-right mark, but so far this is
only done by the Hebrew translation. So in order to not require all
other RTL translations to be fixed individually, just insert the
mark into the returned string ourselves like gnome-desktop's WallClock
code does[0].

[0] https://git.gnome.org/browse/gnome-desktop/tree/libgnome-desktop/gnome-wall-clock.c?h=gnome-3-24#n267

https://bugzilla.gnome.org/show_bug.cgi?id=784130

9 years agoauthPrompt: Remove stray tab character
Michael Catanzaro [Thu, 29 Jun 2017 23:16:11 +0000 (18:16 -0500)]
authPrompt: Remove stray tab character

9 years agoRevert "gdmUtil: Fix auth prompt drawing over user list"
Ray Strode [Wed, 28 Jun 2017 17:15:04 +0000 (13:15 -0400)]
Revert "gdmUtil: Fix auth prompt drawing over user list"

This reverts commit 875a1d61595a90cd62d5d7798f47caa32d297ab4.

(this was pushed accidentally, isn't the right patch, and lacks
 a bug reference)

9 years agoRevert "data: install process-working.svg to filesystem"
Ray Strode [Wed, 28 Jun 2017 17:03:25 +0000 (13:03 -0400)]
Revert "data: install process-working.svg to filesystem"

This reverts commit 0e922eee369cf12979df70927dc1f684f8dc9c16.

(this was pushed accidentally, and is meant to be a downstream
 only patch)

9 years agoauthPrompt: Reorder import
Michael Catanzaro [Wed, 28 Jun 2017 07:34:20 +0000 (02:34 -0500)]
authPrompt: Reorder import

5b339c83714fd173298a83227be7c83f7975fc6d put this in the wrong place.

9 years agoworkspace: Reset source IDs to zero after removing them
Mario Sanchez Prada [Tue, 27 Jun 2017 09:09:16 +0000 (10:09 +0100)]
workspace: Reset source IDs to zero after removing them

There were some source IDs that were not being reset to zero when
removing the associated sources, resulting on some critical errors
being dumped when _realRecalculateWindowPositions() got called
after that point, via _delayedWindowRepositioning().

9 years agoFix a typo
Michael Catanzaro [Mon, 26 Jun 2017 18:47:19 +0000 (13:47 -0500)]
Fix a typo

9 years agoobjectManager: handle proxies coming and going
Ray Strode [Fri, 7 Oct 2016 19:40:14 +0000 (15:40 -0400)]
objectManager: handle proxies coming and going

Ever since commit b8e29ae8c78658917c8a8ddd391667d7d9e36971
(I think), start up is littered with this message:

 Gjs-WARNING **: JS ERROR: could not get remote objects for service
 org.gnome.SettingsDaemon.Smartcard path

since gnome-shell is now started before gnome-settings-daemon.

This commit addresses the problem by making the object manager code
not try to autostart its proxy, and instead wait for it to appear.

https://bugzilla.gnome.org/show_bug.cgi?id=772589

9 years agoobjectManager: handle object manager sending empty array
Ray Strode [Wed, 14 Jun 2017 20:41:41 +0000 (16:41 -0400)]
objectManager: handle object manager sending empty array

If the service implementing the object manager returns
a 0 length array we currently throw an exception.

This commit fixes that.

https://bugzilla.gnome.org/show_bug.cgi?id=780403

9 years agodata: install process-working.svg to filesystem
Ray Strode [Thu, 8 Jun 2017 16:04:31 +0000 (12:04 -0400)]
data: install process-working.svg to filesystem

This helps prevent unlock failure on inplace upgrades between
7.3 and 7.4

9 years agogdmUtil: Fix auth prompt drawing over user list
Ray Strode [Wed, 7 Jun 2017 19:00:11 +0000 (15:00 -0400)]
gdmUtil: Fix auth prompt drawing over user list

If the user fails to enter their password then hits escape, we
jump back to the user list, then ask again for a password in a
garbled screen. this commit fixes that by guarding against the retry
if the fail counter is reset.

9 years agostyle: Fix nesting of elements
Florian Müllner [Wed, 21 Jun 2017 19:53:06 +0000 (21:53 +0200)]
style: Fix nesting of elements

.login-dialog-user-selection-box is the enclosing element, not between
.login-dialog-not-listed-button and .login-dialog-not-listed-label.

https://bugzilla.gnome.org/show_bug.cgi?id=784040

9 years agoBump version to 3.25.3
Florian Müllner [Wed, 21 Jun 2017 19:29:12 +0000 (21:29 +0200)]
Bump version to 3.25.3

Update NEWS.

9 years agobuild: Drop obsolete dist file
Florian Müllner [Wed, 21 Jun 2017 19:57:54 +0000 (21:57 +0200)]
build: Drop obsolete dist file

We no longer use ruby-sass.

9 years agocalendar-server: Specify the timezone for the view query
Sebastian Keller [Tue, 6 Jun 2017 20:32:55 +0000 (22:32 +0200)]
calendar-server: Specify the timezone for the view query

Otherwise UTC is used which results in a different interpretation of
floating time events. This then could lead to a mismatch with events
generated e_cal_client_generate_instances_sync() which always uses the
default timezone. Such a mismatch would then cause constant invalidation
and reloading.

https://bugzilla.gnome.org/show_bug.cgi?id=781950

9 years agoappDisplay: Add a null-check for the scrollview's fade ClutterEffect
Mario Sanchez Prada [Thu, 15 Jun 2017 11:43:58 +0000 (12:43 +0100)]
appDisplay: Add a null-check for the scrollview's fade ClutterEffect

This effect will only be created when the StScrollView actor has either
a non-zero vertical or horizontal fade offset defined, so we need to
add a null-check in these two cases before assuming it's there.

https://bugzilla.gnome.org/show_bug.cgi?id=783823

9 years agosessionMode: Drop unused import
Florian Müllner [Thu, 15 Jun 2017 13:48:36 +0000 (15:48 +0200)]
sessionMode: Drop unused import

9 years agotests/entry: add interactive tests for entry hints
Cosimo Cecchi [Wed, 7 Jun 2017 00:39:34 +0000 (17:39 -0700)]
tests/entry: add interactive tests for entry hints

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: Add support for a "hint actor"
Mario Sanchez Prada [Mon, 5 Jun 2017 17:36:41 +0000 (18:36 +0100)]
st-entry: Add support for a "hint actor"

This allows a full ClutterActor to be used as hint in the entry, instead
of a simple string.

The string case has been now re-implemented on top of the hint actor.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: don't possibly allocate actors a negative size
Cosimo Cecchi [Wed, 7 Jun 2017 00:56:17 +0000 (17:56 -0700)]
st-entry: don't possibly allocate actors a negative size

Clutter will complain about this, so protect the code against such edge
case.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agotests/entry: add text-shadow
Cosimo Cecchi [Tue, 6 Jun 2017 21:32:39 +0000 (14:32 -0700)]
tests/entry: add text-shadow

Also make the text larger and add an example string, since event
delivery does not seem to work properly under tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: Add support for the text-shadow CSS property
Mario Sanchez Prada [Mon, 5 Jun 2017 17:39:21 +0000 (18:39 +0100)]
st-entry: Add support for the text-shadow CSS property

It's supported everywhere else, we should also support it here.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agotests/entry: remove unused import
Cosimo Cecchi [Tue, 6 Jun 2017 21:31:19 +0000 (14:31 -0700)]
tests/entry: remove unused import

This is actually harmful, since it will drag a depepdency chain that
we're not able to satisfy from the tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-im-text: don't require st_im_text_set_event_window() to be called
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:55 +0000 (14:27 -0700)]
st-im-text: don't require st_im_text_set_event_window() to be called

Tests like tests/interactive/entry.js don't call it; make sure we still
display an entry in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost-entry: don't assume a cursor func has been set
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:18 +0000 (14:27 -0700)]
st-entry: don't assume a cursor func has been set

That won't be the case when called from tests.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost: initialize static variables to NULL
Cosimo Cecchi [Tue, 6 Jun 2017 21:27:00 +0000 (14:27 -0700)]
st: initialize static variables to NULL

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agoautorunManager: Remove unused import
Florian Müllner [Fri, 9 Jun 2017 13:43:16 +0000 (15:43 +0200)]
autorunManager: Remove unused import

9 years agost-entry: remove unused variable
Cosimo Cecchi [Tue, 6 Jun 2017 21:52:33 +0000 (14:52 -0700)]
st-entry: remove unused variable

9 years agost-entry: Add primary-icon and secondary-icon read-write properties
Mario Sanchez Prada [Mon, 5 Jun 2017 17:43:27 +0000 (18:43 +0100)]
st-entry: Add primary-icon and secondary-icon read-write properties

Instead of simply providing a setter, we now provide real properties.

https://bugzilla.gnome.org/show_bug.cgi?id=783484

9 years agost: fix "text-shadow: none" to correctly draw no shadow
Matt Watson [Wed, 11 Mar 2015 00:25:38 +0000 (17:25 -0700)]
st: fix "text-shadow: none" to correctly draw no shadow

We would incorrectly create a solid black st-shadow with no blur when
parsing in a "none" value from css.

https://bugzilla.gnome.org/show_bug.cgi?id=783485

9 years agoRemove an explicit destroy to the ClutterText actor
Cosimo Cecchi [Tue, 27 Aug 2013 20:47:19 +0000 (13:47 -0700)]
Remove an explicit destroy to the ClutterText actor

This is the same as the previous commit, but for StEntry.
We don't have any need to explicitly destroy this actor in our dispose
implementation, and doing so breaks the assumption that we can access
the clutter_text from within destroy.

https://bugzilla.gnome.org/show_bug.cgi?id=783483

9 years agoRemove dangerous explicit destroy
Cosimo Cecchi [Wed, 5 Jun 2013 20:54:09 +0000 (13:54 -0700)]
Remove dangerous explicit destroy

There's no need to explicitly destroy the ClutterText actor inside the
label; doing so is actually harmful, as it will break the normal
reference cycle between container and children.
As StLabel doesn't hold any extra reference to the ClutterText actor and
just uses clutter_actor_add_actor() to add it to itself, let the normal
container dispose cycle run to dispose of the reference.

https://bugzilla.gnome.org/show_bug.cgi?id=783483

9 years agodocs: Remove reference to libgnome-shell-base
Ting-Wei Lan [Mon, 5 Jun 2017 15:10:17 +0000 (23:10 +0800)]
docs: Remove reference to libgnome-shell-base

https://bugzilla.gnome.org/show_bug.cgi?id=783439

9 years agoportalHelper: Fix auth URI not being passed to window
Bastien Nocera [Wed, 31 May 2017 14:03:16 +0000 (16:03 +0200)]
portalHelper: Fix auth URI not being passed to window

Gjs-Message: JS WARNING: [resource:///org/gnome/shell/portalHelper/main.js 360]: reference to undefined property top.uri
is caused by the URI variable actually being called "url".

https://bugzilla.gnome.org/show_bug.cgi?id=783286

9 years agoportalHelper: Don't go through proxies for captive portals
Bastien Nocera [Thu, 18 May 2017 16:13:12 +0000 (18:13 +0200)]
portalHelper: Don't go through proxies for captive portals

When using an SSH tunnel (through a SOCKS proxy) to funnel all
the outgoing traffic, we need the captive portal to not go through that
proxy, otherwise we can't go through the proxy because we're not
connected to the Internet and we can't go through the portal because
we're not connected through the proxy.

This fixes a blank captive portal window and no error reporting in that
particular configuration.

https://bugzilla.gnome.org/show_bug.cgi?id=769692

9 years agotests: Adjust test runner
Florian Müllner [Sat, 27 May 2017 03:03:11 +0000 (05:03 +0200)]
tests: Adjust test runner

The script currently assumes that srcdir is relative to builddir,
which is not the case for build directories outside the source tree
like the one used by jhbuild.
While we could get fancy and prepend the builddir if srcdir is relative,
there's nothing wrong with a relative path as we cd into the builddir
before evaluating srcdir.

https://bugzilla.gnome.org/show_bug.cgi?id=783206

9 years agobuild: Drop obsolete pkg-config check
Florian Müllner [Sun, 28 May 2017 15:51:18 +0000 (17:51 +0200)]
build: Drop obsolete pkg-config check

The check belongs to the test-recorder executable that was dropped
in commit d52c95a15f5e.

https://bugzilla.gnome.org/show_bug.cgi?id=783206

9 years agobuild: Stop building a separate libgnome-shell-base
Florian Müllner [Sun, 28 May 2017 13:06:45 +0000 (15:06 +0200)]
build: Stop building a separate libgnome-shell-base

The static library was split out to avoid duplicate compilation
of mutter-independent libgnome-shell sources when we had a
wayland/non-wayland split. With the separate libmutter-wayland
library long gone, there's no reason to make the build more
complicated than it needs to be, so fold libgnome-shell-base
back into the regular libgnome-shell.

https://bugzilla.gnome.org/show_bug.cgi?id=783206

9 years agobuild: Always install xdg-desktop-portal metadata
Florian Müllner [Thu, 25 May 2017 01:22:11 +0000 (03:22 +0200)]
build: Always install xdg-desktop-portal metadata

The build target accidentally ended up in a network manager conditional,
though the portal doesn't depend on NM in any way.

https://bugzilla.gnome.org/show_bug.cgi?id=783206

9 years agobuild: Drop check for gjs-console
Florian Müllner [Wed, 24 May 2017 23:32:28 +0000 (01:32 +0200)]
build: Drop check for gjs-console

Nowadays all javascript code is run via small C-wrappers ...

https://bugzilla.gnome.org/show_bug.cgi?id=783206

9 years agobuild: Switch to sassc for generating style
Florian Müllner [Tue, 4 Apr 2017 15:49:10 +0000 (17:49 +0200)]
build: Switch to sassc for generating style

GTK+ switched from ruby-based sass to c-based sassc for performance
reasons. It makes sense to follow suit, if not to not require two
tools for the same job ...

https://bugzilla.gnome.org/show_bug.cgi?id=783210

9 years agopanel: Update .solid style on session mode changes
Florian Müllner [Mon, 29 May 2017 15:20:36 +0000 (17:20 +0200)]
panel: Update .solid style on session mode changes

The .solid style isn't supposed to apply for modes that don't support
windows, but for this to work we have to update the style on session
mode changes.

https://bugzilla.gnome.org/show_bug.cgi?id=783202

9 years agoshell-global: Use MetaSettings for settings
Jonas Ådahl [Fri, 21 Apr 2017 10:13:33 +0000 (18:13 +0800)]
shell-global: Use MetaSettings for settings

Scale settings were moved from MetaBackend to a new MetaSettings.

https://bugzilla.gnome.org/show_bug.cgi?id=777732

9 years agoBump version to 3.25.2
Florian Müllner [Wed, 24 May 2017 21:51:43 +0000 (23:51 +0200)]
Bump version to 3.25.2

Update NEWS.

9 years agost: Fix doc comment
Florian Müllner [Wed, 24 May 2017 09:10:01 +0000 (11:10 +0200)]
st: Fix doc comment

The trailing colon breaks recent versions of gtk-doc, so drop it.

9 years agolookingGlass: Use standard icon names for GC icon
Florian Müllner [Tue, 23 May 2017 09:04:28 +0000 (11:04 +0200)]
lookingGlass: Use standard icon names for GC icon

Commit b929320d4 added a toolbar item to force garbage collection,
however it won't be visible for most users, as it uses a non-standard
legacy icon name (the default icon theme dropped it as far back as 2009).

https://bugzilla.gnome.org/show_bug.cgi?id=782982

9 years agowindowManager: Add animations for maximize and unmaximize
Alessandro Bono [Sat, 20 May 2017 15:56:48 +0000 (17:56 +0200)]
windowManager: Add animations for maximize and unmaximize

The fullscreen animation code is now generic enough to handle any
size change animations, so stop limiting it to (un)fullscreen to
get animations on (un)maximize as well.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

9 years agowindowManager: Rename functions and variables
Alessandro Bono [Sat, 20 May 2017 17:34:51 +0000 (19:34 +0200)]
windowManager: Rename functions and variables

Stop using the word 'fullscreen' since the code is also
going to be used for maximize and tile actions.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

9 years agowindowManager: Use sourceRect for consistency
Alessandro Bono [Sat, 20 May 2017 15:04:08 +0000 (17:04 +0200)]
windowManager: Use sourceRect for consistency

Now that we always pass the old frame rect, we can use that
instead of picking up the dimensions of the clone actor.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

9 years agowindowManager: Generalize translation values
Alessandro Bono [Sat, 20 May 2017 14:34:35 +0000 (16:34 +0200)]
windowManager: Generalize translation values

Currently, the translation values are set with the assumption that
one of the actors represents a fullscreen window. In order to
generalize it for any size change transition, we can simply swap
the monitor rect with the source or target rect as appropriate,
and translate the actor from the target to the source position by
subtracting the former and adding the latter.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

9 years agowindowManager: Rename variable
Alessandro Bono [Sat, 20 May 2017 15:06:28 +0000 (17:06 +0200)]
windowManager: Rename variable

Since there is already targetRect that represents where the
window is going to move, rename oldRect to sourceRect to
represent from where the window is moving.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

9 years agobuild: Use #!/bin/sh instead of #!/bin/bash
Ting-Wei Lan [Wed, 24 May 2017 14:08:33 +0000 (22:08 +0800)]
build: Use #!/bin/sh instead of #!/bin/bash

There is no bashism in autogen.sh now.

https://bugzilla.gnome.org/show_bug.cgi?id=780215

9 years agoswitcherPopup: Ignore implicit enter events when the popup is mapped
Carlos Garnacho [Tue, 28 Feb 2017 12:35:57 +0000 (13:35 +0100)]
switcherPopup: Ignore implicit enter events when the popup is mapped

If the popup happens to be mapped beneath the pointer, mutter will now
emit an implicit enter notify event (i.e. not caused by pointer motion).
In this case the switcherPopup still goes and selects the item, which
results in too sensitive alt-tab menus if the pointer happens to be in
the wrong place.

Make highlighting rely on motion events instead, so it always involves
user interaction when triggered by the pointer.

https://bugzilla.gnome.org/show_bug.cgi?id=755164

9 years agoutil: Always use 12h format if requested
Florian Müllner [Sun, 21 May 2017 19:12:49 +0000 (21:12 +0200)]
util: Always use 12h format if requested

Whether we show times in 12h format currently depends on:
 - the 'clock-format' desktop setting
 - the locale support for AM/PM

This was consist with other GNOME components, however both the
WallClock[0] and the Date+Time Settings panel[1] dropped the
second check after GDateTime started supporting AM/PM independently
from the locale, so we should follow suite.

[0] https://git.gnome.org/browse/gnome-desktop/commit?id=226fe725ef2cb2
[1] https://git.gnome.org/browse/gnome-control-center/commit?id=85cd910af

https://bugzilla.gnome.org/show_bug.cgi?id=782930

9 years agoSwitch to stable libsecret API
Michael Biebl [Mon, 15 May 2017 05:12:12 +0000 (07:12 +0200)]
Switch to stable libsecret API

Most of the libsecret API was declared stable in 0.18 and the stable API
now provides everything we need, so switch from libsecret-unstable to
libsecret-1.

https://bugzilla.gnome.org/show_bug.cgi?id=782637

9 years agoUpdate Turkish translation
Furkan Ahmet Kara [Sat, 20 May 2017 03:51:58 +0000 (03:51 +0000)]
Update Turkish translation

(cherry picked from commit e7ad9d72171a9431a2c63f3998c606798494b5e0)

9 years agotheme: Update sass submodule
Florian Müllner [Fri, 19 May 2017 17:02:32 +0000 (19:02 +0200)]
theme: Update sass submodule

9 years agopanel: Add transparency when free-floating
Alessandro Bono [Fri, 23 Sep 2016 19:08:11 +0000 (21:08 +0200)]
panel: Add transparency when free-floating

The solid black top bar we currently use works well for maximized
or tiled windows, as it puts focus on the application content by
blending into the monitor bezel. However it also visually reduces
the screen space, which is particularly noticeable when no window
is located nearby. Having the top bar blend with the background is
a better option in that case, so track window positions and add
some transparency when the top bar is free-floating.

https://bugzilla.gnome.org/show_bug.cgi?id=747163

9 years agotests: Update markup test for function moved to messageList
Jeremy Bicha [Thu, 18 May 2017 19:35:54 +0000 (15:35 -0400)]
tests: Update markup test for function moved to messageList

https://bugzilla.gnome.org/show_bug.cgi?id=782802

9 years agoUpdate Serbian Latin translation
Милош Поповић [Thu, 18 May 2017 21:56:21 +0000 (21:56 +0000)]
Update Serbian Latin translation

(cherry picked from commit 4c1467196e988ea1869930755b8a15753f3443ac)

9 years agoUpdate Serbian translation
Милош Поповић [Thu, 18 May 2017 21:54:51 +0000 (21:54 +0000)]
Update Serbian translation

9 years agoUpdate German translation
Christian Stadelmann [Thu, 18 May 2017 18:55:42 +0000 (18:55 +0000)]
Update German translation

(cherry picked from commit 946ff3b38098a6b600e4ef400f1d1da02a719820)

9 years agokeyboard: Drop dbus naming semantics from Set[Entry|Cursor]Location
Carlos Garnacho [Mon, 16 Jan 2017 15:38:07 +0000 (16:38 +0100)]
keyboard: Drop dbus naming semantics from Set[Entry|Cursor]Location

Those functions don't proxy dbus method calls anymore, so just drop the
uppercase 'S'.

https://bugzilla.gnome.org/show_bug.cgi?id=777342

9 years agokeyboard: Remove Show/Hide calls
Carlos Garnacho [Mon, 16 Jan 2017 15:36:21 +0000 (16:36 +0100)]
keyboard: Remove Show/Hide calls

And merge with the "internal" show/hide() ones. Those functions don't
proxy dbus method calls anymore, so it makes no sense to expose these.
Also, the timestamp is no longer needed as there is a single source for
these events.

https://bugzilla.gnome.org/show_bug.cgi?id=777342

9 years agokeyboard: Avoid runtime dependency on the Caribou daemon
Carlos Garnacho [Mon, 16 Jan 2017 15:21:01 +0000 (16:21 +0100)]
keyboard: Avoid runtime dependency on the Caribou daemon

The caribou daemon only gives us focus tracking, which is almost 1:1 with
our own FocusCaretTracker implementation. This means we can entirely
replace the Caribou daemon inside gnome-shell, reducing the Caribou
dependency to just libcaribou, and more specifically the
CaribouKeyboardModel we pull the keyboard models from.

As we still need underneath a CaribouDisplayAdapter to drive the keyboard,
reuse the wayland one, which has been renamed to make it look generic, plus
it will use the virtual input device API from mutter/clutter.

https://bugzilla.gnome.org/show_bug.cgi?id=777342

9 years agoFix bashism in autogen.sh
Matthias Liertzer [Fri, 17 Mar 2017 14:07:15 +0000 (15:07 +0100)]
Fix bashism in autogen.sh

https://bugzilla.gnome.org/show_bug.cgi?id=780215

9 years agodateMenu: Fix a runtime warning
Florian Müllner [Fri, 28 Apr 2017 14:54:28 +0000 (16:54 +0200)]
dateMenu: Fix a runtime warning

GJS now warns about excess parameters, so wrap the queue_relayout()
into an anonymous function instead of using it directly as signal
handler.

9 years agosearch: copy result to clipboard if requested
Daiki Ueno [Wed, 3 May 2017 08:28:31 +0000 (10:28 +0200)]
search: copy result to clipboard if requested

Some search providers such as GNOME Characters want to copy search
results to clipboard.  However, on Wayland, clipboards are only
accessible from applications that have a visible surface on display.

This patch allows a search provider to request the shell to copy a
search result to clipboard when 'clipboardText' is included in the meta
of the result.

https://bugzilla.gnome.org/show_bug.cgi?id=775099

9 years agopopupMenu: Change the position of the icon in PopupImageMenuItem
Mario Sanchez Prada [Thu, 4 May 2017 17:09:39 +0000 (18:09 +0100)]
popupMenu: Change the position of the icon in PopupImageMenuItem

We are moving the icon to be added before the text instead of after,
which is consistent with other menu items in other popup menus, such
as the ones in the system indicator's popup menu.

https://bugzilla.gnome.org/show_bug.cgi?id=782166

9 years agopopupMenu: Allow specifying an icon on PopupMenuBase.addAction()
Mario Sanchez Prada [Mon, 8 May 2017 10:38:16 +0000 (11:38 +0100)]
popupMenu: Allow specifying an icon on PopupMenuBase.addAction()

This allows passing an optional icon parameter to addAction()
so that a PopupImageMenuItem instance is created instead of a
PopupMenuItem if an icon is specified.

https://bugzilla.gnome.org/show_bug.cgi?id=782166

9 years agopopupMenu: Accept either an icon name or a GIcon on PopupImageMenuItem
Mario Sanchez Prada [Mon, 8 May 2017 10:36:35 +0000 (11:36 +0100)]
popupMenu: Accept either an icon name or a GIcon on PopupImageMenuItem

Add an extra check to setIcon() so that either a GIcon or an string
with the icon's name is handlded, so that we can create menu items
in different ways (e.g. by passing a GIcon created from a resource).

https://bugzilla.gnome.org/show_bug.cgi?id=782166

9 years agoUpdate Catalan translation
Jordi Mas [Sun, 7 May 2017 19:31:02 +0000 (21:31 +0200)]
Update Catalan translation

9 years agotheme: Use font-relative width for prompts
Florian Müllner [Mon, 1 May 2017 10:49:55 +0000 (12:49 +0200)]
theme: Use font-relative width for prompts

The usual expectation when selecting large fonts is for content to
be bigger, not that less content is displayed. While not always
possible, there's no reason not to scale modal dialogues with the
font size.

https://bugzilla.gnome.org/show_bug.cgi?id=782000

9 years agoentry: Fix *-icon-clicked handler
Florian Müllner [Thu, 4 May 2017 22:27:32 +0000 (00:27 +0200)]
entry: Fix *-icon-clicked handler

Commit ffe4eaf00d8 broke the handler by fetching the instance private
from the wrong actor - as we don't use the ::primary-icon-clicked signal,
and the ::secondary-icon-clicked signal still works by accident, nobody
noticed until now ...

https://bugzilla.gnome.org/show_bug.cgi?id=782190

9 years agoBump version to 3.25.1
Florian Müllner [Thu, 27 Apr 2017 16:07:54 +0000 (18:07 +0200)]
Bump version to 3.25.1

Update NEWS.

9 years agodocs: Fix typo
Florian Müllner [Thu, 27 Apr 2017 16:29:45 +0000 (18:29 +0200)]
docs: Fix typo